package top.infopub.mgr.hr.dao;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.infopub.generic.GenericDao;
import top.infopub.model.hr.PostGroup;
import top.infopub.model.hr.PostGroupInfo;

import java.util.List;

@Repository
public interface PostGroupDao extends GenericDao<PostGroup, String> {

    Page<PostGroup> selectByDomainWhere(PostGroup postInfo);

    /**
     * 批量插入
     * @param list
     * @see
     */
    void insertByBatch(@Param("list") List<PostGroupInfo> list);

    void deleteGroupInfoByGroupId(String groupId);

    void deleteGroupInfoById(String id);

    List<PostGroupInfo> selectGroupInfoByGroupId(String groupId);
}
